package com.anche.cywebnew.Service.systemManager;

import com.anche.cywebnew.Pojo.systemManager.SysUser;
import com.anche.cywebnew.Pojo.systemManager.TerminalInfo;
import com.anche.cywebnew.Utils.ResponseBody.ResponseResult;

import java.util.Date;

public interface LoginService {
    /**
     * @description：登录时验证用户登录状态
     * @author：donghe.song
     * @date: 2018/06/13 16:10
     */
    public ResponseResult chekUserState(SysUser sysuser);
    /**
     * @description：登录时验证用户工作时间
     * @author：donghe.song
     * @date: 2018/06/13 16:10
     */
    public ResponseResult checkWorkTime(SysUser sysuser);
    /**
     * @description：登录时验证用户限定IP
     * @author：donghe.song
     * @date: 2018/06/13 16:10
     */
    public ResponseResult checkRangeIP(SysUser sysuser,String ip);
    /**
     * @description：登录时验证用户登录IP黑名单
     * @author：donghe.song
     * @date: 2018/06/13 16:10
     */
    public ResponseResult checkBlackIP(String ip);
    /**
     * @description：登录时验证用户数据安全
     * @author：donghe.song
     * @date: 2018/06/13 16:10
     */
    public ResponseResult checkUserData(SysUser sysuser);

    String LockMsg(Integer errorTimes, SysUser sysUser);

    String IPLockMsg(int ipTimes, TerminalInfo terminalInfo, SysUser sysUser);
}
